"""Header_Information
------------------------------------
    File_Name: crud_01
    Author: RR9
    Date: 2024/10/24
    Description: 增删改查
------------------------------------
"""
from typing import List

from fastapi import APIRouter
from app.models.ob1 import Student
from app.schemas.crud_01 import StudentOut
from pydantic import BaseModel

router = APIRouter()


@router.post(
    "/student",
    # response_model=List[StudentOut],
    # response_model_exclude_unset=True,
    summary="所有学生"
)
async def get_student():
    students = await Student.all()
    return students
